import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase="DBshop040_搜索查询"

firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,"客户管理","客户余额","充值记录")

firefox.find_element_by_name("user_name").send_keys("kunkun")
firefox.find_element_by_xpath("//button").click()

try:
    firefox.find_element_by_xpath("//font[@color='green']").text=="充值完成"
    writeLog("%s 测试通过"%testCase)
except:

    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)